using System;
using Microsoft.Win32.SafeHandles;

namespace NovaCore.Interop.SafeHandles {
	public class ConnectionHandle : SafeHandleZeroOrMinusOneIsInvalid {
		public ConnectionHandle() : base(true) { }

		protected override bool ReleaseHandle() {
			Connection.ReleaseSession(handle);
			return true;
		}
	}
}